import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    component: () => import('./views/index.vue') // 首页
  },
  {
    path: '/test',
    component: () => import('./views/test.vue') // 测试
  },
  {
    path: '/auth',
    component: () => import('./views/auth.vue') // 获取openid,进而获取jwt
  },
  {
    path: '/carnival_index',
    component: () => import('./views/carnival_index.vue') // 我的报名信息列表
  },
  {
    path: '/carnival',
    component: () => import('./views/carnival.vue') // 填写报名信息
  },
  {
    path: '/trip',
    component: () => import('./views/trip.vue') // 研学报名
  },
  {
    path: '/trip3',
    component: () => import('./views/trip3.vue') // 研学报名
  },
  {
    path: '/trip5',
    component: () => import('./views/trip5.vue') // 研学报名
  },
  {
    path: '/trip_index',
    component: () => import('./views/trip_index.vue') // 研学报名
  },
  {
    path: '/650',
    component: () => import('./views/650.vue') // 缴费650
  },
  {
    path: '/pay',
    component: () => import('./views/pay.vue') // 自助缴费
  },
  {
    path: '/paid',
    component: () => import('./views/paid.vue') // 自助缴费后台
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes, // `routes: routes` 的缩写
})

export default router